package com.xxwy.ddu.security.code.vaildatecode.image;

import com.xxwy.ddu.security.code.vaildatecode.ValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;

/**
 * @author xxwy
 * on 2018/8/21 0021
 */
@Data
public class ImageCode extends ValidateCode {

    /**
     * 不序列化
     */
    private transient BufferedImage image;

    public ImageCode() {
        super();
    }

    /**
     *
     * @param image
     * @param code
     * @param expireIn :多少秒过期
     */
    public ImageCode(BufferedImage image, String code, int expireIn) {
        super(code,expireIn);
        this.image = image;
    }


}
